<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">

    <ui:define name="title">
        Ajax Framework - <span class="subitem">RemoteCommand</span>
    </ui:define>

    <ui:define name="description">
        RemoteCommand provides a simple way to execute backing bean methods with javascript.
    </ui:define>

    <ui:param name="documentationLink" value="/components/remotecommand" />

    <ui:define name="implementation">
        
        <h:form>
            <p:remoteCommand name="rc" update="msgs" action="#{remoteCommandView.execute}" />
            
            <p:growl id="msgs" showDetail="true" skipDetailIfEqualsSummary="true" />
            <p:commandButton type="button" onclick="rc()" value="Execute" icon="pi pi-refresh" />
        </h:form>
    
    </ui:define>

</ui:composition>